negotiator.boaframework.offeringstrategy.other
Class ANAC2013BOAExample_Offering

java.lang.Object
  extended by negotiator.boaframework.OfferingStrategy
      extended by negotiator.boaframework.offeringstrategy.other.ANAC2013BOAExample_Offering

public class ANAC2013BOAExample_Offering
extends OfferingStrategy

Example agent that offers a bid with a utility above the target "breakoff". If the utility received at the end of a match is higher than the breakoff, then the breakoff is set to this utility for the next session on this preference profile. If there is no accept, then the target is decreased with a predefined constant.

Author:
Mark Hendrikx.

Field Summary
 
Fields inherited from class negotiator.boaframework.OfferingStrategy
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel
 
Constructor Summary
ANAC2013BOAExample_Offering()
          Empty constructor called by BOA framework.
 
Method Summary
 BidDetails determineNextBid()
          Offer a random bid with a utility higher than the target breakoff.
 BidDetails determineOpeningBid()
          Determines the first bid to be offered by the agent
 void endSession(NegotiationResult result)
          Method called at the end of a negotiation.
 void init(NegotiationSession negotiationSession, OpponentModel opponentModel, OMStrategy omStrategy, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the offering strategy.
 
Methods inherited from class negotiator.boaframework.OfferingStrategy
getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ANAC2013BOAExample_Offering

public ANAC2013BOAExample_Offering()
Empty constructor called by BOA framework.

Method Detail

init

public void init(NegotiationSession negotiationSession,
                 OpponentModel opponentModel,
                 OMStrategy omStrategy,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Description copied from class: OfferingStrategy
Initializes the offering strategy. If parameters are used, this method should be overridden.

Overrides:
init in class OfferingStrategy
Parameters:
negotiationSession - state of the negotiation.
opponentModel - opponent model which may be used.
omStrategy - opponent model strategy which may be used.
parameters - optional parameters for the offering strategy.
Throws:
java.lang.Exception - if the offering strategy fails to initialize.

determineOpeningBid

public BidDetails determineOpeningBid()
Description copied from class: OfferingStrategy
Determines the first bid to be offered by the agent

Specified by:
determineOpeningBid in class OfferingStrategy
Returns:
the opening bid of the agent.

determineNextBid

public BidDetails determineNextBid()
Offer a random bid with a utility higher than the target breakoff.

Specified by:
determineNextBid in class OfferingStrategy
Returns:
bid to offer to the opponent.

endSession

public void endSession(NegotiationResult result)
Method called at the end of a negotiation. This is the ideal point in time to update the target for the next negotiation.

Overrides:
endSession in class OfferingStrategy
Parameters:
result - of the negotiation.